//
//  XSDataSaveManager.h
//  XSDownloadDemo
//
//  Created by 大帅 on 2023/12/21.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface XSDataSaveManager : NSObject

/// 单例
+ (instancetype)sharedManager;

/// 新增一条数据
- (void)addDownloadSingleData:(XSTestModel *)model;

/// 新增多条数据
- (void)addDownloadMoreData:(NSArray *)list;

/// 删除指定数据（Mp4）
- (BOOL)deleteDownloadSingleData:(XSTestModel *)model;

/// 删除指定数据（M3u8）
- (BOOL)deleteM3u8DownloadSingleData:(XSTestModel *)model;

/// 批量删除数据
- (BOOL)deleteDownloadAllData:(NSArray *)delList;

/// 删除全部数据
- (void)deleteDownloadAllData;

/// 修改指定数据
- (void)updateDownloadSingleData:(XSTestModel *)model;

/// 查看指定数据
- (XSTestModel *)lookDownloadSingleData:(XSTestModel *)model;

/// 查看全部数据
- (NSArray *)lookDownloadAllData;

@end

NS_ASSUME_NONNULL_END
